Repository navigation
fix(purge): re-published derived rows replace their derivation input edges (#9653) - #9655
Masashi-Ono0611 wants to merge 1 commit into
Conversation
…edges (garrytan#9653) Related to garrytan#9653 Re-publication replaces the row's derivation_inputs edges with the current inputs, including when the current set is empty. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
Thanks for this pull request, @Masashi-Ono0611. Here is how we handle outside pull requests, so you know what to expect:
When we rebuild a change, we close this PR with a link to the PR that landed it. When we don't take one, we close it with a short note saying why and what would change our answer. So apart from documentation, "closed, not merged" is the normal outcome and doesn't mean your work was turned down. For a larger change, show us:
A limit of 3 open pull requests applies only to someone whose recent pull requests have mostly been closed without being taken. It never applies to anyone who has had a pull request taken (merged or rebuilt) in the last 90 days. More in CONTRIBUTING.md, "How an outside pull request is handled": https://github.com/garrytan/gbrain/blob/master/CONTRIBUTING.md#how-an-outside-pull-request-is-handled This comment comes from the fix-wave gate check. It is red on every outside pull request by design, and a maintainer clears it when merging a documentation change. |
|
Thanks for this, @Masashi-Ono0611. It replaces a derived row's input edges when it is re-published, so purging a former input no longer soft-deletes a concept that stopped using it (#9653). That's fixed on the main branch: each concept publication now replaces its input record with the current members (v0.60.741.0), and a concept hidden that way is rebuilt on the next synthesis (#9794, v0.60.746.0). |
Related to #9653
When a deriver re-publishes a row, its derivation_inputs edge set is now replaced with the current inputs (including clearing it when the current input list is empty), so purging a former input no longer soft-deletes a row that no longer uses it.
Discrimination test
Discrimination test: reverted
src/core/facts/derivation-inputs.ts,src/core/persistence/prepared-maintenance.ts,src/core/trust/taint.tsto280b5a87cac6, ranbun test test/derivation-inputs-republish-9653.test.ts→ fails without the fix. Restored → passes with the fix (T-0 recheck: proceed at master 280b5a8; pass/fail counts were not captured by the T-0 runner).Reproduced on latest master 280b5a8 right before submission.
Verification
Tests
test/derivation-inputs-republish-9653.test.ts(added or changed by this PR)bun test test/derivation-inputs-republish-9653.test.ts: fails without the fix, passes with it (T-0 recheck: proceed at master 280b5a8; pass/fail counts not captured)